package com.jgy.client.config;

import com.jgy.client.OAuthLoginApi;
import feign.Feign;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 姜光远
 * @date 2023/3/24 16:37
 */
@Configuration
public class ApiConfiguration {
    @Bean
    public OAuthLoginApi oAuthLoginApi() {
        return Feign.builder()
                .target(OAuthLoginApi.class, "http://127.0.0.1:63001");
    }
}
